// DlgMaterialNumber.cpp : implementation file
//

#include "stdafx.h"
#include "pdarx.h"
#include "DlgMaterialNumber.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgMaterialNumber dialog


CDlgMaterialNumber::CDlgMaterialNumber(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgMaterialNumber::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgMaterialNumber)
	p_length = 0.0;
	a_length = 0.0;
	angle = 0.0;
	auto_search = FALSE;
	only_one = FALSE;
	//}}AFX_DATA_INIT
	::AfxSetResourceHandle(g_ARXInstance);
}


void CDlgMaterialNumber::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgMaterialNumber)
	DDX_Text(pDX, IDC_EDIT1, p_length);
	DDX_Text(pDX, IDC_EDIT2, a_length);
	DDX_Text(pDX, IDC_EDIT3, angle);
	DDX_Check(pDX, IDC_CHECK1, auto_search);
	DDX_Check(pDX, IDC_CHECK2, only_one);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgMaterialNumber, CDialog)
	//{{AFX_MSG_MAP(CDlgMaterialNumber)
	ON_WM_CREATE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgMaterialNumber message handlers

void CDlgMaterialNumber::OnOK() 
{	
	CDialog::OnOK();
}

void CDlgMaterialNumber::OnCancel() 
{
	CDialog::OnCancel();
}

int CDlgMaterialNumber::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CDialog::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	::AfxSetResourceHandle(g_CADInstance);
	
	return 0;
}
